Replace last glDrawBuffer call with glDrawBuffers(1, ...)
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sun, 28 Jun 2020 20:13:32 +0000 (22:13 +0200)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 5 Jan 2021 14:46:48 +0000 (14:46 +0000)
commitad5cf48813b2ef00167226b41666563c79cfbe89
treea2686b48f24b2688984f5c1de26fa5f58afb2859
parent214af6dd49af74835a9a6bd2462ff655db006706
Replace last glDrawBuffer call with glDrawBuffers(1, ...)

glDrawBuffer is only available in Desktop OpenGL, while the equivalent
glDrawBuffers is valid also for GLES.

Just defining glDrawBuffer as an empty macro is obviously not the right
solution, as the call is also required on GLES. This also causes
a compilation failure - GL.h may be included via GLX.h on X11 platforms,
and the glDrawBuffer prototype declaration becomes malformed.

Gbp-Pq: Name 81_allow_gles_platforms.patch
Rendering/ContextOpenGL2/vtkOpenGLContextDevice2DPrivate.h
ThirdParty/glew/vtk_glew.h.in